﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TarifasCopiar.aspx.cs" Inherits="NewTierra.Pages.TarifasCopiar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title></title>

      <link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
      <script src="http://code.jquery.com/jquery-1.8.3.js" type="text/javascript"></script>
      <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js" type="text/javascript"></script>

      <link href="../../Styles/EstiloGeral.css" rel="stylesheet" />

    <style type="text/css">
        #body   
        {
         background-color:White;
         font-size: .80em;
         font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
         padding: 0px;
         width: 351px;
         height: 198px;
            margin-left: 0px;
            margin-right: 0px;
            margin-top: 0px;
        }
        
        #CopiarTarifas
        {
            height: 194px;
            width: 342px;
            padding: 10px;
        }
      
        #CopiarTarifas .Botoes
        {
            height: 54px;
            float: left;
            width: 328px;
        }
      
        #CopiarTarifas .GridTarifas
        {
            height: 200px;
            float: left;
            overflow: auto;
            width: 452px;
        }
      
        #CopiarTarifas .datas
        {
            width: 149px;
            float: left;
            height: 90px;
        }
      
        #CopiarTarifas .Filtros
        {
            width: 181px;
            float: left;
            height: 90px;
        }
        </style>
</head>
<body id="body">
 <script language="javascript" type="text/javascript">

     function closeMe() {
         window.close();
     }

     jQuery(function ($) {
         $.datepicker.regional['pt-BR'] = {
             closeText: 'Fechar',
             prevText: '&#x3c;Anterior',
             nextText: 'Pr&oacute;ximo&#x3e;',
             currentText: 'Hoje',
             monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
                'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
             monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
                'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
             dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
             dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
             dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
             weekHeader: 'Sm',
             dateFormat: 'dd/mm/yy',
             firstDay: 0,
             isRTL: false,
             showMonthAfterYear: false,
             yearSuffix: ''
         };
         $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
     });

     $(function () {
         $("#from").datepicker({
             defaultDate: "+1w",
             changeMonth: true,
             numberOfMonths: 1,
             onClose: function (selectedDate) {
                 $("#to").datepicker("option", "minDate", selectedDate);
             }
         });
         $("#to").datepicker({
             defaultDate: "+1w",
             changeMonth: true,
             numberOfMonths: 1,
             onClose: function (selectedDate) {
                 $("#from").datepicker("option", "maxDate", selectedDate);
             }
         });
     });


</script>

    <form id="formulario" runat="server">

    <div id="CopiarTarifas">
        <fieldset>
            <legend>Copiar Tarifas</legend>

             <div class="Filtros">

                <asp:Label ID="lblEstacaoTXT" runat="server" width="100px" Text="Estação:" 
                style="margin-right: 0px; margin-bottom: 0px;" ForeColor="#666666"></asp:Label><br />
                <asp:DropDownList ID="DropEstacao" runat="server" AutoPostBack="True">
                </asp:DropDownList>
                <br />
                <asp:Label ID="lblPeriodoTXT" runat="server" ForeColor="#666666" 
                style="margin-right: 0px; margin-bottom: 0px;" Text="Período" width="100px"></asp:Label><br />
                <asp:DropDownList ID="DropPeriodos" runat="server" AutoPostBack="True">
                </asp:DropDownList>
        </div>

         <div class="datas">
                
                <asp:Label ID="lblDataFromTXT" runat="server" ForeColor="#666666" Text="Data From:"></asp:Label><br />
                <asp:TextBox ID="from" runat="Server" Width="100px" MaxLength="10"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="from" ErrorMessage="*" ValidationGroup="Salvar" 
                    ToolTip="Campo requerido"></asp:RequiredFieldValidator>
                    <br />

                <asp:Label ID="lblDataToTXT" runat="server" ForeColor="#666666" Text="Data To:"></asp:Label><br />
                <asp:TextBox ID="to" runat="Server" 
                    MaxLength="10" Width="100px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="to" ErrorMessage="*" ValidationGroup="Salvar" 
                    ToolTip="Campo requerido"></asp:RequiredFieldValidator>
       </div>

        <div class="Botoes">
                    <asp:Button ID="Salvar" runat="server" CssClass="btnsGeral" Text="Salvar" onclick="SalvarTarifas" ValidationGroup="Salvar" />
                    &nbsp;<asp:Button ID="btnFechar" runat="server" CssClass="btnsGeral" Text="Fechar"  OnClientClick="window.close();" /><br />

                    <asp:Label ID="lblCopiarTarifas" runat="server" Font-Bold="True" 
                         ForeColor="#CC0000" Font-Size="Small"></asp:Label>
        </div>

        </fieldset>
    </div>

    </form>
</body>
</html>
